<?php 
 /**
  * 
  */
 class Location extends CI_Controller {
     
     function __construct() {
     	 parent::__construct();
         $this->load->model('location_model');
     }
	 function getfromcat($catid){
	 	$array = $this->location_model->getfromcat($catid);
		print(json_encode($array));
	 }
 }
 
?>